package com.cxkj.shop.biz;

import java.util.Collection;
import java.util.Map;

import org.apache.commons.lang3.StringUtils;

import net.wangds.common.processor.AbstractInputOutputProcessor;
import net.wangds.comp.business.http.AbstractHttpInteractionBusiness;

import com.cxkj.shop.form.DefaultDelivery;
import com.cxkj.shop.form.Delivery;
import com.cxkj.shop.model.order.Order;
import com.cxkj.shop.proc.DefaultSelectListMybatisProc;
import com.cxkj.shop.proc.order.SelOrderListByTimerTypeProc;
import com.google.gson.Gson;
public class LoadOrdersByTimerTypeBusiness extends AbstractHttpInteractionBusiness<Map<String,Object>, Delivery>{

	 private  SelOrderListByTimerTypeProc proc=null;
	 
	 
	 
	public SelOrderListByTimerTypeProc getProc() {
		return proc;
	}
	
	public void setProc(SelOrderListByTimerTypeProc proc) {
		this.proc = proc;
	}
	@Override
	public void process() throws Exception {
		// TODO Auto-generated method stub
		DefaultDelivery<Collection<Order>> res = new DefaultDelivery<Collection<Order>>();
		SelOrderListByTimerTypeProc proc=this.getProc();
		Map<String,Object> map=this.getInput();
		proc.setTimertype(map.get("timertype").toString());
		proc.process();
		res.setData(proc.getResult());
	    res.setSuccess(true);
	    this.setOutput(res);
		
		
	}

}
